package steuerung.data;

/**
 * @author Jan Geldermann
 *
 */
public class Buchung {
	private String art;
	private int menge;
	private int liefermenge;
	private double anteil;
	private Lager lager;
	private String lfnr;
	
	public Buchung(String art, int menge, int liefermenge, Lager lager, String lfnr) {
		this.art = art;
		this.menge = menge;
		this.liefermenge = liefermenge;
		this.lfnr = lfnr;
		this.lager = lager;
		
		anteil = (double) menge / (double) liefermenge;
	}

	public String getArt() {
		return art;
	}
	
	public int getMenge() {
		return menge;
	}
	
	public int getLiefermenge() {
		return liefermenge;
	}

	public double getAnteil() {
		return anteil;
	}
	
	public Lager getLager() {
		return lager;
	}
	
	public String getLfnr() {
		return lfnr;
	}
}
